package com.opensicence.javafx.image;

import java.io.FileInputStream;
import java.io.InputStream;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class ImageDemo extends Application {

	@Override
	public void start(Stage primaryStage) throws Exception {
		
		
		InputStream is = new FileInputStream("");
		Image image = new Image(is);
		StackPane stackPane = new StackPane();
		
		Scene scene = new Scene(stackPane, 800, 600);
		primaryStage.setScene(scene);
		primaryStage.setTitle("图像显示");
		primaryStage.setResizable(true);
		primaryStage.show();
		
	}

	public static void main(String[] args) {
		launch(args);
	}
}
